home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / code / Firefox_1.0.5.exe / browser.xpi / bin / chrome / browser.jar / content / browser / web-panels.xul < prev   
Encoding:
Extensible Markup Language  |  2003-12-03  |  11.4 KB  |  231 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  5.  
  6. <!DOCTYPE window SYSTEM "chrome://browser/locale/browser.dtd">
  7.  
  8. <page id="webpanels-window"
  9.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  10.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.         onload="load()" onunload="unload()"> 
  12.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  13.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  14.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  15.   <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  16.   <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  17.   <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  18.   <script type="application/x-javascript" src="chrome://browser/content/web-panels.js"/>
  19.  
  20.   <stringbundleset id="stringbundleset"> 
  21.     <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
  22.   </stringbundleset>
  23.     
  24.   <popupset id="mainPopupSet">
  25.  
  26.     <popup id="contentAreaContextMenu"
  27.            onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
  28.            onpopuphiding="if (event.target == this) gContextMenu = null;">
  29.       <menuitem id="context-openlink"
  30.                 label="&openLinkCmd.label;"
  31.                 accesskey="&openLinkCmd.accesskey;"
  32.                 oncommand="gContextMenu.openLink();"/>
  33.       <menuitem id="context-openlinkintab"
  34.                 label="&openLinkCmdInTab.label;"
  35.                 accesskey="&openLinkCmdInTab.accesskey;"
  36.                 oncommand="gContextMenu.openLinkInTab();"/>
  37.       <menuseparator id="context-sep-open"/>
  38.       <menuitem id="context-bookmarklink"
  39.                 label="&bookmarkLinkCmd.label;"
  40.                 accesskey="&bookmarkLinkCmd.accesskey;"
  41.                 oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL(),
  42.                                                       gContextMenu.linkText());"/>
  43.       <menuitem id="context-savelink"
  44.                 label="&saveLinkCmd.label;"
  45.                 accesskey="&saveLinkCmd.accesskey;"
  46.                 oncommand="gContextMenu.saveLink();"/>
  47.       <menuitem id="context-sendlink"
  48.                 label="&sendLinkCmd.label;"
  49.                 accesskey="&sendLinkCmd.accesskey;"
  50.                 oncommand="gContextMenu.sendLink();"/>
  51.       <menuitem id="context-copyemail"
  52.                 label="©EmailCmd.label;"
  53.                 accesskey="©EmailCmd.accesskey;"
  54.                 oncommand="gContextMenu.copyEmail();"/>
  55.       <menuitem id="context-copylink"
  56.                 label="©LinkCmd.label;"
  57.                 accesskey="©LinkCmd.accesskey;"
  58.                 command="cmd_copyLink"/>
  59.       <menuseparator id="context-sep-copylink"/>
  60.       <menuitem id="context-viewimage"
  61.                 label="&viewImageCmd.label;"
  62.                 accesskey="&viewImageCmd.accesskey;"
  63.                 oncommand="gContextMenu.viewImage(event);"
  64.                 onclick="checkForMiddleClick(this, event);"/>
  65.       <menuitem id="context-copyimage-contents"
  66.                 label="©ImageContentsCmd.label;"
  67.                 accesskey="©ImageContentsCmd.accesskey;"
  68.                 command="cmd_copyImageContents"/>
  69.       <menuitem id="context-copyimage"
  70.                 label="©ImageCmd.label;"
  71.                 accesskey="©ImageCmd.accesskey;"
  72.                 command="cmd_copyImageLocation"/>
  73.       <menuseparator id="context-sep-copyimage"/>
  74.       <menuitem id="context-saveimage"
  75.                 label="&saveImageCmd.label;"
  76.                 accesskey="&saveImageCmd.accesskey;"
  77.                 oncommand="gContextMenu.saveImage();"/>
  78.       <menuitem id="context-sendimage"  
  79.                 label="&sendImageCmd.label;" 
  80.                 accesskey="&sendImageCmd.accesskey;" 
  81.                 oncommand="gContextMenu.sendImage();"/>
  82.       <menuitem id="context-setWallpaper"
  83.                 label="&setWallpaperCmd.label;"
  84.                 accesskey="&setWallpaperCmd.accesskey;"
  85.                 oncommand="gContextMenu.setWallpaper();"/>
  86.  
  87. <!--XXXBlake XUL sucks! We need autocheck for menuitems. -->
  88.       <menuitem id="context-blockimage" class="menuitem-iconic"
  89.                 accesskey="&blockImageCmd.accesskey;"
  90.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') != 'true');"/>
  91.       <menuitem id="context-back"
  92.                 label="&backCmd.label;"
  93.                 accesskey="&backCmd.accesskey;"
  94.                 command="Browser:Back"/>
  95.       <menuitem id="context-forward"
  96.                 label="&forwardCmd.label;"
  97.                 accesskey="&forwardCmd.accesskey;"
  98.                 command="Browser:Forward"/>
  99.       <menuitem id="context-reload"
  100.                 label="&reloadCmd.label;"
  101.                 accesskey="&reloadCmd.accesskey;"
  102.                 oncommand="BrowserReload();"/>
  103.       <menuitem id="context-stop"
  104.                 label="&stopCmd.label;"
  105.                 accesskey="&stopCmd.accesskey;"
  106.                 command="Browser:Stop"/>
  107.       <menuseparator id="context-sep-stop"/>
  108.       <menuitem id="context-bookmarkpage"
  109.                 label="&bookmarkPageCmd.label;"
  110.                 accesskey="&bookmarkPageCmd.accesskey;"
  111.                 oncommand="addBookmarkAs(document.getElementById('content'));"/>
  112.       <menuitem id="context-savepage"
  113.                 label="&savePageCmd.label;"
  114.                 accesskey="&savePageCmd.accesskey;"
  115.                 oncommand="saveDocument(window._content.document);"/>
  116.       <menuitem id="context-sendpage"  
  117.                 label="&sendPageCmd.label;" 
  118.                 accesskey="&sendPageCmd.accesskey;" 
  119.                 command="Browser:SendLink"/>
  120.       <menuseparator id="context-sep-viewbgimage"/>  
  121.       <menuitem id="context-viewbgimage"
  122.                 label="&viewBGImageCmd.label;"
  123.                 accesskey="&viewBGImageCmd.accesskey;"
  124.                 oncommand="gContextMenu.viewBGImage(event);"
  125.                 onclick="checkForMiddleClick(this, event);"/>
  126.       <menuitem id="context-undo"
  127.                 label="&undoCmd.label;"
  128.                 accesskey="&undoCmd.accesskey;"
  129.                 command="cmd_undo"/>
  130.       <menuseparator id="context-sep-undo"/>
  131.       <menuitem id="context-cut"
  132.                 label="&cutCmd.label;"
  133.                 accesskey="&cutCmd.accesskey;"
  134.                 command="cmd_cut"/>
  135.       <menuitem id="context-copy"
  136.                 label="©Cmd.label;"
  137.                 accesskey="©Cmd.accesskey;"
  138.                 command="cmd_copy"/>
  139.       <menuitem id="context-paste"
  140.                 label="&pasteCmd.label;"
  141.                 accesskey="&pasteCmd.accesskey;"
  142.                 command="cmd_paste"/>
  143.       <menuitem id="context-delete"
  144.                 label="&deleteCmd.label;"
  145.                 accesskey="&deleteCmd.accesskey;"
  146.                 command="cmd_delete"/>
  147.       <menuseparator id="context-sep-paste"/>
  148.       <menuitem id="context-selectall"
  149.                 label="&selectAllCmd.label;"
  150.                 accesskey="&selectAllCmd.accesskey;"
  151.                 command="cmd_selectAll"/>      
  152.       <menuseparator id="context-sep-selectall"/>
  153.       <menuitem id="context-keywordfield"
  154.                 label="&keywordfield.label;"
  155.                 accesskey="&keywordfield.accesskey;"
  156.                 oncommand="AddKeywordForSearchField();"/>
  157.       <menuitem id="context-searchselect"
  158.                 accesskey="&search.accesskey;"
  159.                 oncommand="OpenSearch('internet', gContextMenu.searchSelected(), true);"/>
  160.       <menuseparator id="frame-sep"/>
  161.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  162.         <menupopup>
  163.           <menuitem label="&showOnlyThisFrameCmd.label;"
  164.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  165.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  166.           <menuitem label="&openFrameCmd.label;"
  167.                     accesskey="&openFrameCmd.accesskey;"
  168.                     oncommand="gContextMenu.openFrame();"/>
  169.           <menuitem label="&openFrameCmdInTab.label;"
  170.                     accesskey="&openFrameCmdInTab.accesskey;"
  171.                     oncommand="gContextMenu.openFrameInTab();"/>
  172.           <menuseparator/>
  173.           <menuitem label="&reloadFrameCmd.label;"
  174.                     accesskey="&reloadFrameCmd.accesskey;"
  175.                     oncommand="gContextMenu.reloadFrame();"/>
  176.           <menuseparator/>
  177.           <menuitem label="&bookmarkFrameCmd.label;"
  178.                     accesskey="&bookmarkFrameCmd.accesskey;"
  179.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  180.           <menuitem label="&saveFrameCmd.label;"
  181.                     accesskey="&saveFrameCmd.accesskey;"
  182.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  183.           <menuseparator/>
  184.           <menuitem label="&viewFrameSourceCmd.label;"
  185.                     accesskey="&viewFrameSourceCmd.accesskey;"
  186.                     oncommand="gContextMenu.viewFrameSource();"/>
  187.           <menuitem label="&viewFrameInfoCmd.label;"
  188.                     accesskey="&viewFrameInfoCmd.accesskey;"
  189.                     oncommand="gContextMenu.viewFrameInfo();"/>        
  190.         </menupopup>
  191.       </menu>
  192.       <menuseparator id="context-sep-properties"/>
  193.       <menuitem id="context-viewpartialsource-selection"
  194.                 label="&viewPartialSourceForSelectionCmd.label;"
  195.                 accesskey="&viewPartialSourceCmd.accesskey;"
  196.                 oncommand="gContextMenu.viewPartialSource('selection');"/>
  197.       <menuitem id="context-viewpartialsource-mathml"
  198.                 label="&viewPartialSourceForMathMLCmd.label;"
  199.                 accesskey="&viewPartialSourceCmd.accesskey;"
  200.                 oncommand="gContextMenu.viewPartialSource('mathml');"/>
  201.       <menuitem id="context-viewsource"
  202.                 label="&viewPageSourceCmd.label;"
  203.                 accesskey="&viewPageSourceCmd.accesskey;"
  204.                 oncommand="BrowserViewSourceOfDocument(_content.document);"/>
  205.       <menuitem id="context-viewinfo"
  206.                 label="&viewPageInfoCmd.label;"
  207.                 accesskey="&viewPageInfoCmd.accesskey;"
  208.                 oncommand="gContextMenu.viewInfo();"/>
  209.       <menuitem id="context-metadata"
  210.                 label="&metadataCmd.label;"
  211.                 accesskey="&metadataCmd.accesskey;"
  212.                 oncommand="gContextMenu.showMetadata();"/>
  213.       <menuseparator hidden="true" id="context-sep-bidi"/>
  214.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  215.                 label="&bidiSwitchTextDirectionItem.label;"
  216.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  217.                 oncommand="SwitchTextEntryDirection(gContextMenu.target)"/>
  218.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  219.                 label="&bidiSwitchPageDirectionItem.label;"
  220.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  221.                 oncommand="SwitchDocumentDirection();"/>
  222.     </popup>
  223.  
  224.   </popupset>
  225.   
  226.   
  227.   <browser id="web-panels-browser" persist="cachedurl" type="content" flex="1"
  228.            context="contentAreaContextMenu"
  229.            onclick="return window.parent.contentAreaClick(event, true);"/>
  230. </page>
  231.